//
//  SLSafe.h
//  SLKit
//
//  Created by S_LINE on 2020/9/24.
//  Copyright © 2020 S_LINE. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface SLSafe : NSObject

/// 参数是字符串时，原样输出，参数是nsnumber类型时，转换为nsstring输出，其他类型输出@""
+ (NSString *)convertNumberToString:(id)obj;
/// 判断传入对象是否是有效字符串
+ (BOOL)isEffectiveString:(id)string;
/// 判断传入对象是否是有效NSNumber类型数据
+ (BOOL)isEffectiveNumber:(id)number;
/// 判断传入对象是否是有效数组
+ (BOOL)isEffectiveArray:(id)array;
/// 判断传入对象是否是有效字典
+ (BOOL)isEffectiveDictionary:(id)dictionary;

@end

NS_ASSUME_NONNULL_END
